CC = gcc
TARGET = monilenetv2_forward.exe
PYTHON = python
# DELETE = rm
DELETE = del
IMG = 

CSOURCES = \
cifar10_test_quant.c \
../../cmodel/*.c

INCLUDS = \
-I../../cmodel \
-I../../py/c_param_int16

CFLAGS =  \
-DDEBUG \
-DACTIVATE=RelU6 \
-DUSE_INT16

all: param compile run

param:
	cd ../../py && python export.py

compile: $(CSOURCES)
	python cifar10_test_quant.py $(IMG)
	$(CC) $^ $(INCLUDS) $(CFLAGS) -o $(TARGET)

run:
	./monilenetv2_forward.exe

clean:
	$(DELETE) *.txt *.exe *.h

